From: Jasper St. Pierre Date: Mon, 25 Feb 2013 20:00:28 +0000 (-0500) Subject: dnd: Clean up construction X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~4217 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=9c839cdc7000628ecb0e74c1b23dbbb0ddeb919b;p=gnome-shell.git dnd: Clean up construction https://bugzilla.gnome.org/show_bug.cgi?id=699975 --- diff --git a/js/ui/dnd.js b/js/ui/dnd.js index 763bd0494..5b0a33460 100644 --- a/js/ui/dnd.js +++ b/js/ui/dnd.js @@ -43,9 +43,7 @@ let dragMonitors = []; function _getEventHandlerActor() { if (!eventHandlerActor) { - eventHandlerActor = new Clutter.Rectangle(); - eventHandlerActor.width = 0; - eventHandlerActor.height = 0; + eventHandlerActor = new Clutter.Rectangle({ width: 0, height: 0 }); Main.uiGroup.add_actor(eventHandlerActor); // We connect to 'event' rather than 'captured-event' because the capturing phase doesn't happen // when you've grabbed the pointer.